package project;

public class CreditCard
{
  private static CreditCard instance = null;

  private String cardType = "";
  private String holdersName = "";
  private int validMonth = 2;
  private int validYear = 2010;
  private String cardNumber = "";
  private int verificationCode = 0;

  public static CreditCard getInstance()
  {
    if (instance == null) {
      instance = new CreditCard();
    }
    return instance;
  }

  public String getCardNumber()
  {
    return this.cardNumber;
  }

  public void setCardNumber(String cardNumber)
  {
    this.cardNumber = cardNumber;
  }

  public String getCardType()
  {
    return this.cardType;
  }

  public void setCardType(String cardType)
  {
    this.cardType = cardType;
  }

  public String getHoldersName()
  {
    return this.holdersName;
  }

  public void setHoldersName(String holdersName)
  {
    this.holdersName = holdersName;
  }

  public int getValidMonth()
  {
    return this.validMonth;
  }

  public void setValidMonth(int validMonth)
  {
    this.validMonth = validMonth;
  }

  public int getValidYear()
  {
    return this.validYear;
  }

  public void setValidYear(int validYear)
  {
    this.validYear = validYear;
  }

  public int getVerificationCode()
  {
    return this.verificationCode;
  }

  public void setVerificationCode(int verificationCode)
  {
    this.verificationCode = verificationCode;
  }
}